In the sequence above, the variable var is set to the two-letter string ls.
在上面的命令序列中,把变量var设置为两字母的字符串ls。
Before I can get to the mapping part of the solution, you need to understand how a simple three-letter string like DEN gets converted to a point on a map.
在讨论该解决方案的地图绘制部分之前,您需要了解如何将一个简单的三个字母的字符串(如den)转换为地图上的一点。
Iso3166-country-code.xsd: the ISO3166CountyCode type both constrains the data to be a two-letter string and requires it to be one of the actual iso 3166-1 country codes.
iso 3166 - country - code . xsd: iso 3166 CountyCode类型约束数据为两个字母的字符串并且要求其必须为一个实际的iso 3166 - 1国家区号。
So it does that for us so that you can get away with just knowing the address of the first byte and it will make sure that you know when to stop by including the special value so, in fact, get the string if you type in a three-letter word, we allocate four bytes no matter what because we need an additional byte 0 for this special sentinel value back slash zero at the very end.
它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。
Well, get string again is returning the address of the string the user typed in, D the address of the very first character like the letter D and storing that address in this variable s1.
好的,GetString返回的是,用户输入的字符串的地址,第一个字符的地址,比如字母,然后把这个地址存储在这个变量s1中。
Well, turns out that with arrays, not to make this too trippy too soon, but Arg V bracket something is a string, you can also use square bracket notation to go to a specific letter in a string, because little teaser a string is just an array.
好的,结果用那个数组,不要使这个很快引起幻觉,但是Argv什么的,是一个字符串,你也可以用方括号定位到,字符串中的一个特定的字母,因为一个字符串只是一个数组。
应用推荐